from django.conf import settings

OPENID_FIELD_MAPPING = \
    {'nickname' : 'display_name',
     'email' : 'email',
     'fullname' : 'fullname',
     'dob' : 'birthdate',
     'country' : 'location'}

ANONYMOUS_USERS_ENABLED = getattr(settings, 'ANONYMOUS_USERS_ENABLED', True)

def default_profile_builder(user):
    return {}

from core.utils import profile_builder

PROFILES_ENABLED = getattr(settings, 'PROFILES_ENABLED', True)
PROFILE_BUILDER = getattr(settings, 'PROFILE_BUILDER', None) or profile_builder or default_profile_builder
PROFILE_TEMPLATE = getattr(settings, 'PROFILE_TEMPLATE', 'django_community/profile.html')